import request from '@/utils/request'

export function del(id) {
  return request({
    url: 'api/deleteBrand/' + id,
    method: 'delete'
  })
}

export function add(data) {
  return request({
    url: 'api/addBrand',
    method: 'post',
    data: data
  })
}

export function edit(data) {
  return request({
    url: 'api/updateBrand',
    method: 'put',
    data: data
  })
}

export function initDate(data) {
  return request({
    url: 'api/getBrand?page=' + data.page + '&size=' + data.size + '&brandName' + data.brandName,
    method: 'get'
  })
}

